<?php
  /**************************************************\
  |* Syllabus database:  Main viewer                *|
  |*------------------------------------------------*|
  |* This file is a wrapper for any form of viewing *|
  |* for the syllabus database.  This will also     *|
  |* allow for a common window for the model, view, *|
  |* and controller to interact.  This keeps in     *|
  |* compliance with SGA's policy of open, freely-  *|
  |* available data by providing an XML export      *|
  |* support option.                                *|
  \**************************************************/
  
  @$format = $_GET['format'];
  switch($format){
    case "html":
      require_once "view/course_html.php";
      break;
    case "xml":
      require_once "view/course_xml.php";
      break;
    default:
      require_once "view/course_html.php";
      break;
  }
?>